import os
import time
source = ['F:\\pythonStudy\\struct', 'E:\\2013-07-22']
target_dir = "E:\\" 

today = target_dir + time.strftime('%Y%m%d')
now = time.strftime('%H%M%S')

if not os.path.exists(today):
	os.mkdir(today)
	print 'Successfullu created directory',today

target = today + os.sep + now + '.rar'
rar_command = r'"C:\Program Files (x86)\WinRAR\Rar.exe" a %s %s'  %(target,' '.join(source))
if os.system(rar_command) == 0:
    print 'Successful backup to', target
else:
    print 'Backup FAILED'